/* 1470. 重新排列数组 */
/**
 * @param {number[]} nums
 * @param {number} n
 * @return {number[]}
 */
var shuffle = function (nums, n) {
	const result = new Array(2 * n).fill(0)
	for (let i = 0; i < n; i++) {
		result[2 * i] = nums[i]
		result[2 * i + 1] = nums[i + n]
	}
	return result
}
shuffle([2, 5, 1, 3, 4, 7], 3)
